import request from '../utils/request'
const api_name = "/member"

export default {
    // 获取所有的课程分类（包括二级分类）
    sendSMS(mobile) {
        return request({
            url: `${api_name}/sendsms/${mobile}`,
            method: 'get'
        })
    },
    // 注册用户
    register(user) {
        return request({
            url: `${api_name}/register`,
            method: 'post',
            data: user
        })
    },
    //登录
    login(user) {
        return request({
            url: `${api_name}/login`,
            method: 'post',
            data: user
        })
    },
    getInfo() {
        return request({
            url: `${api_name}/getinfo`,
            method: 'get',
        })
    }
}